import request from '@/utils/libs/request'

/**
 * 广告列表
 * @param params
 */
export function BannerList(params: Record<string, any>) {
    return request.get('banner/list', { params })
}

/**
 * 添加广告
 * @param params
 */
export function addBanner(params: Record<string, any>) {
    return request.post('banner/add', params)
}

/**
 * 编辑广告
 * @param params
 */
export function editBanner(params: Record<string, any>) {
    return request.post('banner/edit', params)
}

/**
 * 删除广告
 * @param params
 */
export function deleteBanner(params: Record<string, any>) {
    return request.post('banner/delete', params)
}
